package cloud.maque.sso.client.service;

import cloud.maque.sso.client.model.ThridSite;
import cloud.maque.sso.client.model.UserModel;

public interface SsoClientAuthUserService {


    /**
     * 通过OpenId获取用户
     * <p>
     * 如果没有实现该功能，则直接返回test
     *
     * @param openid
     * @return
     */
    default String getUserIdByOpenid(String openid) {
        return "test";
    }

    default UserModel getUserByUserName(String userNmae) {
        return null;
    }

    default UserModel getUserByUserId(String userId) {
        return null;
    }



    default void BindThridSite(String userId, ThridSite thrid) {

    }

    default void updateOpenId(String userId, String openId) {

    }
}
